﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsTJ.aspx.cs" Inherits="lcmyjobs.Web.Admin.NewsTJ" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/AdminFrame.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
     <div class="rightCenter">
        <div class="rightBack">
           <div class="rightContentTop">
                <ul>
                    <li class="cur">
                        <a href="ListEnterpriseCheck.aspx" >热门推荐文章</a>
                    </li>
                  
                </ul>
           </div>
           <div class="rightContentMiddle">
            
               <asp:GridView ID="GridView1" runat="server" Width="100%" 
                   AutoGenerateColumns="False" EnableModelValidation="True" 
                   AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" 
                   onrowcommand="GridView1_RowCommand" PageSize="20" CssClass="grid" 
                   GridLines="None">
                   <Columns>
                       <asp:BoundField DataField="ntitle" HeaderText="文章标题" />
                       <asp:TemplateField HeaderText="内容简介">
                           <EditItemTemplate>
                               <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                           </EditItemTemplate>
                           <ItemTemplate>
                               <asp:Label ID="Label2" runat="server" 
                                   Text='<%# GetStr(Eval("ncontent").ToString()) %>'></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="热门">
                           <ItemTemplate>
                               <asp:Label ID="Label3" runat="server" Text='<%# Bind("isrmname") %>'></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="推荐">
                           <EditItemTemplate>
                               <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                           </EditItemTemplate>
                           <ItemTemplate>
                               <asp:Label ID="Label1" runat="server" Text='<%# Bind("istjname") %>'></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="操作">
                           <EditItemTemplate>
                               <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                           </EditItemTemplate>
                           <ItemTemplate>
                               <asp:LinkButton ID="lbn_tj" runat="server" CommandArgument='<%# Bind("nid") %>' 
                                   CommandName="lbn_tj">标记为推荐文章</asp:LinkButton>
                               &nbsp;
                               <asp:LinkButton ID="lbn_rm" runat="server" CommandArgument='<%# Bind("nid") %>' 
                                   CommandName="lbn_rm">标记为热门文章</asp:LinkButton>
                               &nbsp;
                               <asp:LinkButton ID="lbn_cxtj" runat="server" 
                                   CommandArgument='<%# Bind("nid") %>' CommandName="lbn_cxtj">撤销推荐文章标记</asp:LinkButton>
                               &nbsp;
                               <asp:LinkButton ID="lbn_cxrm" runat="server" 
                                   CommandArgument='<%# Bind("nid") %>' CommandName="lbn_cxrm">撤销热门文章标记</asp:LinkButton>
                           </ItemTemplate>
                       </asp:TemplateField>
                   </Columns>
                   <PagerSettings FirstPageText="&lt;&lt;" LastPageText="&gt;&gt;" 
                       Mode="NumericFirstLast" NextPageText="下一页" PreviousPageText="上一页" 
                       PageButtonCount="5" />
                   <PagerStyle Font-Bold="True" Font-Size="12pt" HorizontalAlign="Center" />
               </asp:GridView>
           </div></div></div>
    </form>
</body>
</html>
